package com.example.producer.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("producer")
@Slf4j
public class ProducerController {

    @GetMapping("/{id}")
    public String test(@PathVariable("id") String id){
        log.info("进入生产者模块下的Controller层");
        return id;
    }
}
